package com.song;

import com.song.model.Menu;
import com.song.service.ShowMenu;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName : ConsumerMain
 * @Author : 司猫子
 * @Date: 2021/2/27 22:32
 */
public class ConsumerMain {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("menuconsumer.xml");
        ShowMenu showMenu = (ShowMenu) ctx.getBean("showMenu");
        Menu show = showMenu.show("文件菜单");
        System.out.println("文件菜单"+show);
        System.out.println("==============");
        show = showMenu.show("编辑菜单");
        System.out.println("编辑菜单"+show);
    }
}
